Skip to content

Conversation

@jrhemstad
Copy link
Collaborator

Adds a new class called static_reduction_map.

When inserting a key/value pair, static_reduction_map performs an aggregation operation between the newly inserted payload and the existing value in the map. The slots in the map are initialized such that the identity value of the aggregation is the initial value of a slot's payload.

Copied existing static_map files and just renamed
all references to static_map to static_reduction_map.
We need to return a bool so we can keep track of
how many unique keys were inserted in a bulk
insert.
The mapped value is updated in the case of a new
insert or updating an existing key, but we need to
track if the insert was the first time that key was
inserted.
@sleeepyjack sleeepyjack mentioned this pull request Aug 4, 2021
@PointKernel PointKernel added the duplicate This issue or pull request already exists label Dec 3, 2021
@jrhemstad
Copy link
Collaborator Author

Superseded by #98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants